use "dataset_east_baton_rouge_protests", clear

* mark protest topics
foreach x of varlist * {
	replace `x' = "\textbf{" + `x' + "}" if regex(Sub, "Alton Sterling")
}
foreach x of varlist * {
	replace `x' = "\emph{" + `x' + "}" if regex(Sub, "George Floyd")
}

#delimit;

listtex 
	using "_output/table A8.tex"
	,
		replace 
		type 
		rstyle(tabular) 	
		head(
		\begin{tabular}{
		p{0.15\textwidth}
		p{0.6\textwidth}
		p{0.1\textwidth}
		}
		\toprule Date & Subjects & Size \\
		\midrule
		)
		foot("\bottomrule\end{tabular}")
		;
		
#delimit cr

